<?php

/**
 * Vcr actions.
 *
 * @package    wills
 * @subpackage Vcr
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class VcrActions extends sfActions
{
  public function executeIndex(sfWebRequest $request)
  {
    $this->vcrs = Doctrine::getTable('Vcr')
      ->createQuery('a')
      ->execute();
  }

  public function executeShow(sfWebRequest $request)
  {
    $this->vcr = Doctrine::getTable('Vcr')->find(array($request->getParameter('id')));
    $this->forward404Unless($this->vcr);
  }
}
